package com.imooc.user.enums;

import lombok.Getter;


@Getter
public enum ResultEnum {
    /**
     * 对应关系
     */
    LOGIN_FAIL(1, "登陆失败"),
    ROLE_ERROR(2, "角色有误");

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
